package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Classroom;
import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.domain.Grade;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface ClassroomMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Classroom record);

    Classroom selectByPrimaryKey(Long id);

    List<Classroom> selectAll();

    int updateByPrimaryKey(Classroom record);

    int queryCount(QueryObject qo);

    List<Classroom> queryList(QueryObject qo);

    /**
     * 根据ID改变教室的ID
     * @param id
     */
    void changeState(Long id);

    /**
     * 教室名称校验操作
     * @param sn
     * @return
     */
    Classroom validateName(String sn);


}

